package cn.gok.oop.homework;

public class HomeWork {
    public static void main(String[] args) {
        //第一小题
        Worker worker = new Worker("giao哥","java",3000);
        System.out.println("第一个方法后得到的工资:"+worker.doJob(3));
        //第二小题
        SuperWorker superWorker = new SuperWorker("giao哥","java",3000,  0.2);
        System.out.println("执行重写的方法后得到的工资:"+superWorker.doJob(3));
        System.out.println("执行重载的方法后得到的工资:"+superWorker.doJob(3, 2));
    }
}
